import {
    dePost,
    doGet
} from "./curd";

export const uploadFile = async (data) => {
    return await dePost('/upload', data, {
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    })
}

export const getAllUser = async () => {
    return await doGet('/getAllUser')
}

export const addUser = async (data) => {
    return await dePost('/addUser', data, {
        headers: {
            'Content-Type': 'multipart/form-data'
        }
    })
}


export const getPhone = async () => {
    return await doGet('/getPhone')
}